-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add HirId to VisibilityKind::Restricted #52911
Conversation
r? @oli-obk (rust_highfive has picked a reviewer for you, use r? to override) |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
33bfdef
to
43a4fce
Compare
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
43a4fce
to
a3769c4
Compare
The changes look good to me. I think we can slowly phase out node IDs by porting all their use sites to HIR ID operations. If a field is unused, just remove it r=me with a rebase |
Right, my question was for example if we can/should remove the node id hash here: https://github.com/rust-lang/rust/blob/a3769c43fe1ff12c1e6610872d2660ef93b22c31/src/librustc/ich/impls_hir.rs#L729-L730, leaving just the HIR ID hash. |
a3769c4
to
3baec3c
Compare
@bors r=oli-obk |
📌 Commit 3baec3c has been approved by |
I'd do that in the same step as removing the field. |
Add HirId to VisibilityKind::Restricted I'm not confident that these changes are correct -- mostly just tried to copy previous PRs. Specifically, it's unclear to me if/how to remove the NodeId now that we have HirIds in more structs; is that a all-at-once change that'll happen later?
☀️ Test successful - status-appveyor, status-travis |
I'm not confident that these changes are correct -- mostly just tried to copy previous PRs.
Specifically, it's unclear to me if/how to remove the NodeId now that we have HirIds in more structs; is that a all-at-once change that'll happen later?